import {
	$post,
	$get
} from '@/utils/request.js'
import axios from '@/utils/axios';
/**
 * 报表查询
 * @param {Object} params 列表参数
 */
export const queryReport = (params) => $post('/merchant/api/report/dynamic/query', params);
/**
 * 获取验证码
 * @param {Object} params 
 */
export const queryCode = (params) => axios.post('/merchant/api/commons/send/code', params)
/**
 * 获取省市区列表
 */
export const queryAreaList = () => $get('/merchant/api/commons/area');
/**
 * 获取银行名称列表
 */
export const queryBankNameList = () => $get('/merchant/api/commons/bank');
/**
 * 获取行业列表
 */
export const queryBusinessList = () => $get('/merchant/api/commons/mcc');
/**
 * 识别身份证
 * @param {Object} params
 */
export const queryIdCardInfo = (params) => $post('/merchant/api/ocrs/id-card', params);
/**
 * 识别银行卡
 * @param {Object} params
 */
export const queryBankCardInfo = (params) => $get('/merchant/api/ocrs/bank-cards', params);
/**
 * 通过设备SN查询设备信息
 * @param {Object} params
 */
export const queryDevicesInfo = (params) => $get(`merchant/api/merchants/devices/${params}`);
/**
 * 获取设备默认结算费率
 * @param {Object} params
 */
export const queryRateInfo = (params) => $get(`/merchant/api/merchants/device-rate/${params}`);
/**
 * 识别营业执照
 * @param {Object} params
 */
export const queryLicenseInfo = (params) => $get('/merchant/api/ocrs/license', params);
/**
 * 通过银行卡名称获取银行id
 * @param {Object} params
 */
export const queryBankName = (params) => $get('/merchant/api/commons/bank/name', params);
/**
 * 查订单
 */
export const orderQuery = (params) => $post('/merchant/api/report/dynamic/order/query', params);

/**
 * 查通道，暂时不用
 */
export const channelQuery = (params) => $post('/merchant/api/report/dynamic/channel/query', params);
/**
 * 查所有设备
 */
export const terminalQuery = (params) => $post('/merchant/api/report/dynamic/terminal/query', params);

/**
 * 查单个设备
 */
export const singleTerminalQuery = (sn) => $get(`/merchant/api/Termina/${sn}`);

/**
 * 查天订单
 */
export const orderByTimeQuery = (params) => $post('/merchant/api/report/dynamic/orderByTimeAndStatus/query', params);

/**
 * 轮播图
 */
export const swipeImage = (params) => $get(`/merchant/api/commons/image`, params);

/**
 * 查月订单
 */
export const orderByTimeQueryMonth = (params) => $post('/merchant/api/report/dynamic/orderByTime/query', params);

/**
 * 获取验证码
 * @param {Object} params 
 */
export const queryCardCode = (params) => axios.post('/merchant/api/users/bank-card/smsCode', params);
/**
 * 查询订单
 * @param {Object} params 
 */
export const querySettleOrder = (params) => $post('/merchant/api/report/dynamic/order/queryNotAccountOrder', params)
/**
 * 查询定位
 * @param {Object} params 
 */
export const wxLocation = (params) => $post('/merchant/api/ocrs/wxLocation', params)
/**
 * 轮播图
 */
export const txmRecognition = (parmas) => $post(`/merchant/api/ocrs/txmRecognition`, parmas);